/* 清除默认样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  background-color: #eee;
  justify-content: center;
}

/* 季节容器 container */
.container {
  height: 500px;
  display: flex;
  max-width: 1200px;
  align-items: center;
  transition: all 0.3s;
  justify-content: center;
}

/* 季节 item */
.item {
  margin: 5px;
  width: 100px;
  height: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 50px;
  transition: all 0.3s;
  background-size: cover;
  justify-content: center;
  border: 3px solid #fff;
  background-position: center;
  box-shadow: 5px 10px 20px -3px rgba(0, 0, 0, 0.3);
}

/* 季节卡片名称 */
.item > h2 {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  color: #fff;
  display: flex;
  font-size: 30px;
  cursor: pointer;
  position: absolute;
  align-items: center;
  transition: all 0.3s;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* 季节卡片激活样式 */
.itemActive {
  width: 800px;
}

.itemActive > h2 {
  opacity: 0;
}

.itemActive > .desc {
  bottom: 0;
}

/* 季节描述 */
.desc {
  left: 0;
  width: 100%;
  color: #fff;
  bottom: -100px;
  padding: 5px 0;
  text-align: center;
  position: absolute;
  height: fit-content;
  transition: all 0.3s;
  backdrop-filter: blur(5px);
  background-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 50px 10px rgba(0, 0, 0, 0.3);
  text-shadow: 0 0 10px rgba(63, 193, 201, 0.5);

  h2 {
    font-size: 20px;
  }
}

.desc:hover {
  box-shadow: none;
  backdrop-filter: blur(0);
  background-color: transparent;
}

/* 当屏幕宽度小于 1200px 时生效（响应式处理） */
@media screen and (max-width: 1200px) {
  .container {
    width: 100%;
    height: fit-content;
    flex-direction: column;
  }

  .item {
    width: 80%;
    height: 100px;
  }

  .itemActive {
    width: 80%;
    height: 300px;
  }
}
